<!DOCTYPE html>
<html>
<head>
  <title>Simple Player Example</title>
</head>
<body>
  <script src="/build/ogv.js"></script>
  <script type="text/javascript">

	window.OGVVersion = "1.0.0";
	window.OGVPlayer = ogv.Player;
	window.OGVWrapperCodec = ogv.WrapperCodec;
	window.OGVDecoderVideoProxy = ogv.DecoderVideoProxy;
	window.OGVDecoderAudioProxy = ogv.DecoderAudioProxy;

	var player = new OGVPlayer({
					forceWebGL: true,
					enableWebM: true // experimental
				});

	var container = document.createElement('div');

	container.appendChild(player);

	document.body.appendChild(container);

	player.src = '/demo/media/curiosity.ogv';

	player.play();

	player.addEventListener('ended', function() {
		setupFrameByFrameSwipe();
	});

  </script>
</body>
</html>
